xsm/flask: fix MISRA C 2012 Rule 20.7 violations
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 6 Sep 2022 14:02:28 +0000 (16:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 6 Sep 2022 14:02:28 +0000 (16:02 +0200)
commitad0838f4499820db613370feea354ac484544b11
treead7d49a185d94b3b204df0d34bc9ae84cb67de2e
parentd84473689611eed32fd90b27e614f28af767fa3f
xsm/flask: fix MISRA C 2012 Rule 20.7 violations

In macros SIDTAB_HASH(), INIT_SIDTAB_LOCK(), SIDTAB_LOCK() and SIDTAB_UNLOCK(),
add parentheses around the macro parameter to prevent against unintended
expansions.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com>
xen/xsm/flask/ss/sidtab.c